The Pascal code in the mp3-units was derived from
a C++ project by Gustav "Grim Reaper" Munkby 
(http://home.swipnet.se/grd/mp3info/)
although it has been rewritten completely, reorganized
and changed beyond recognition.

I made a few amendments though...

1) Replaced vbr-related code by the original "Xing's Variable Bitrate MP3 Playback SDK"
(available from http://www.xingtech.com/support/)

2) Added support for skipping ID3V2 headers
This was really essential : just like some players (GrayAMP - Quicktime...),
you run into problems with some files, if you don't do this.
And once worked out, is is SO EASY !!!
Also this is an enormous speed gain on those files
that have ridiculously large ID3 v2 headers (up to 65K).
ID3 v2 information was taken from http://www.id3.org/
NO NO, parsing and displaying ID3 v2 content is NOT included
(although I hope to be able one day...)

3) Although I am indebted to "Grim Reaper" for the duration
calculation, I made one significant change : the base for the calculation
is no longer the filesize, but the filesize minus the size of all known
headers. The 128 byte ID3 v1 header doesn't matter, but with
65K ID3 v2 headers, the difference can run into several seconds.

4) I went to a few other sources for bitrate tables, genre names
etc... The references are mentioned in the source.

5) Writing of ID3 v1.x tags, included in the original, is not supported here
(but it would be easy to do so - no need and therefore no incentive
for me to work it out)


------------------------ UNIT 1 : mp3.p

The routines in this selfstanding () unit are intended
to extract 'readable' information from small pieces
of information (obtained elsewhere), so-called headers and tags,
which very often are very tightly packed, programmer-unfriendly,
structures.
There are 4 main sections :
1) parsing of mp3-headers
2) parsing of vbr-headers (only the XING header is supported)
3) parsing of ID3 v1.x tags
4) some very limited utilities for handling ID3 v2 tags

() It does need a genre-resource though : see STR#335
in mp3demo..rsrc

------------------------ UNIT 2 : mp3file.p

This unit extracts information from a file
and uses mp3.p to translate it into a more friendly
structure which is made available 
to be displayed, used, misused... elsewhere
There is one key routine : MP3File_ParseInfo which
expects the refnum of an opened file.
All the others are just routines for supplying
mp3 information in a 'standard' way. I just keep
adding them as required...

------------------------ UNIT 3 : mp3demo.p

This unit allows to select a file and
shows the information obtained by mp3file.p
in a simple dialog - There is an accompanying utility app
"La Empeteca" which has slightly more power.





The use of this code is free for non-commercial purposes. If you use it
commercially better do this is in a profiteable project
because I expect you to send me $5623.57 in small, unmarked bills
and coins. ;-)

A note from my lawyer : THIS PROGRAM AND THE SOURCE IS PROVIDED AS IS,
USE AT YOU OWN RISK.

Enjoy,
Johan
(31/07/2000, which is 07/31/2000 in the U.S. I guess)
pangloss@pandora.be



NOTE: This was altered to work with CW Pro 4 and UI 3.4.
